//
//  SNAccountSectionHeaderView.m
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/22.
//  Copyright © 2016年 stone. All rights reserved.
//

#import "SNAccountSectionHeaderView.h"
#import "Masonry.h"
@interface SNAccountSectionHeaderView()

@end
@implementation SNAccountSectionHeaderView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        UILabel * titleLabel = ({
            UILabel * label = [[UILabel alloc] init];
            /** GPU 优化 */
            label.opaque = YES;
            label.backgroundColor = [UIColor whiteColor];
            label.layer.masksToBounds = YES;
            //------------------------------
            label.numberOfLines = 0;
            label.textColor = [UIColor blackColor];
            label.textAlignment = NSTextAlignmentCenter;
            label.text = @"客服提供的账号密码";
            label.font = [UIFont systemFontOfSize:15];
            
            [self addSubview:label];
            
            [label mas_makeConstraints:^(MASConstraintMaker * make) {
                make.left.mas_equalTo(self.mas_left).offset(0);
                make.right.mas_equalTo(self.mas_right).offset(0);
                make.top.mas_equalTo(self.mas_top).offset(0);
                make.bottom.mas_equalTo(self.mas_bottom).offset(0);
            }];
            label;
        });
        self.titleLabel = titleLabel;
    }
    return self;
}
@end
